
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace NCS_CS
{
	public partial class MSQLQ2
	{
		string a;
		string b;
		string c;
		//a%c%b
		public event changeEventHandler change;
		public delegate void changeEventHandler(System.Object Sender, System.EventArgs e);
		public void calc()
		{
			string res = null;
			res = a + "%";
			if (!string.IsNullOrEmpty(c)) {
				res = res + c + "%";

			} else {
			}
			res = res + b;
			Text4.Text = res;
		}
		public string getText()
		{
			return Text4.Text;
		}

		//UPGRADE_WARNING: Event Check1.CheckStateChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Check1_CheckStateChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			if (Check1.CheckState == CheckState.Checked  ) {
				a = Text1.Text;
			} else {
				a = "";
			}
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Check2.CheckStateChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Check2_CheckStateChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			if (Check2.CheckState == CheckState.Checked  ) {
				b = Text2.Text;
			} else {
				b = "";
			}
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Check3.CheckStateChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Check3_CheckStateChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			if (Check3.CheckState == CheckState.Checked ) {
				c = Text3.Text;
			} else {
				c = "";
			}
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Text1.TextChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Text1_TextChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			Check1.CheckState = System.Windows.Forms.CheckState.Checked;
			a = Text1.Text;
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Text2.TextChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Text2_TextChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			Check2.CheckState = System.Windows.Forms.CheckState.Checked;
			b = Text2.Text;
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Text3.TextChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Text3_TextChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			Check3.CheckState = System.Windows.Forms.CheckState.Checked;
			c = Text3.Text;
			calc();
			if (change != null) {
				change(this, null);
			}
		}

		//UPGRADE_WARNING: Event Text4.TextChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
		private void Text4_TextChanged(System.Object eventSender, System.EventArgs eventArgs)
		{
			if (change != null) {
				change(this, null);
			}
		}
		public MSQLQ2()
		{
			InitializeComponent();
		}

        private void Text1_TextChanged_1(object sender, EventArgs e)
        {

        }

        private void Check1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void Check2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void Check1_CheckStateChanged_1(object sender, EventArgs e)
        {

        }

        private void Check3_CheckStateChanged_1(object sender, EventArgs e)
        {

        }

        private void Check2_CheckStateChanged_1(object sender, EventArgs e)
        {

        }

        private void Text3_TextChanged_1(object sender, EventArgs e)
        {

        }

        private void Text2_TextChanged_1(object sender, EventArgs e)
        {

        }

        private void Text4_TextChanged_1(object sender, EventArgs e)
        {

        }
	}
}
